package com.cy.ppj.model.query;

import javax.validation.constraints.NotNull;

import com.cy.ppj.model.Page;
import com.cy.ppj.model.enums.ApplyStatus;
import com.cy.ppj.model.enums.UserType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 订单查询条件
 * @author: tanyilin
 * @create: 2018年7月21日 下午4:42:40
 */
@Data
@ApiModel("订单查询条件")
public class OrderQuery extends Page{

	@ApiModelProperty(value = "用户ID", example = "0")
	private Long userId;

	@ApiModelProperty(value = "用户类型，区分渠道员和业务员")
	private UserType userType;
	
	@ApiModelProperty(value = "订单申请状态（申请中、已放款、已退回）")
	@NotNull(message = "订单类型不可为空")
	private ApplyStatus applyStatus;
	
}
